package com.bkgy.modularbx.furnaceTemperature.controller;

import com.bkgy.modularbx.furnaceTemperature.domain.FurnaceTemperature;
import com.bkgy.modularbx.furnaceTemperature.domain.ModeL1630;
import com.bkgy.modularbx.furnaceTemperature.service.FurnaceTemperatureService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "炉温动态控制", description = "连退/镀锌炉温动态控制模型接口")
@RestController
@RequestMapping("/furnace")
@Validated
public class FurnaceTemperatureController {

    @Autowired
    private FurnaceTemperatureService furnaceTemperatureService;

    @Operation(summary = "钢卷信息查询", description = "根据条件查询钢卷信息")
    @PostMapping("/page")
    public ResultData<FurnaceTemperature> page() {
        return furnaceTemperatureService.getFurnaceTemperatureData();
    }

    @Operation(summary = "钢卷信息查询", description = "根据条件查询钢卷信息")
    @PostMapping("/getFurnaceSet")
    public ModeL1630 getFurnaceSet() {
        return furnaceTemperatureService.getFurnaceSet();
    }
}
